#include"UdpServer.hpp"



int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Useage(argv);
        exit(1);
    }

    std::string ip = argv[1];
    std::string port = argv[2];
    uint16_t _port = std::stoi(port);
    std::unique_ptr<UdpServer> _uptr = std::make_unique<UdpServer>(ip,_port);

    _uptr->Init();
    _uptr->Start();
    _uptr->Stop();


    return 0;
}